package cn.wolfcode.crm.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
@Setter@Getter@ToString
public class Accident {

    //待受理
    public static final int STATE_NORMAL=0;
    //已受理
    public static final int STATE_DONE=1;
    //待审核
    public static final int   STATE_AUDIT_NO=2;
    //已审核
    public static final int   STATE_AUDIT_YES=3;
    //丢弃
    public static final int   STATE_DISCARD=4;
    //待处理
    public static final int   STATE_WAIT=5;

    private Long id;
    private Cases cases;//报案单
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date dealDate;//处理时间
    private Employee employee;//处理员工
    private int state=STATE_NORMAL;//状态
    private String remark;//备注
    private String casesDescription;//事故描述
    private String responsibility;//责任认定
    private Long lossId;//赔损


}